package com.example.demo.controller;

import com.example.demo.entity.User;
import org.springframework.web.bind.annotation.*;

@RestController
public class HelloController {
    @RequestMapping("/hello")
    public String hello(){
        return "hello";
       // return new User("Zhangsan","123");
    }
    @RequestMapping(value = "/user",method = RequestMethod.POST)
    public String hello1(@RequestBody User user){
        return "123";
    }
}
